/*
 * Created on 09/06/2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package br.ufal.tci.nexos.arcolive;

/**
 * @author Leandro
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class ServiceStatus {

	private int statusId = 0;
	private String statusDescription[] = {"stopped", "started", "paused"};
	
	public ServiceStatus() {
		this.statusId = 0;
	}

	public ServiceStatus(int statusId) {
		this.statusId = statusId;
	}
	
	public int getStatusId() {
		return this.statusId;
	}
	
	public void setStatusId(int statusId) {
		if (statusId < 0 || statusId > 2) return;
		this.statusId = statusId;
	}
	
	public String getStatusDescription() {
		return this.statusDescription[this.statusId];
	}
	
}
